package com.neuedu.mybatis.mapper;


import com.neuedu.common.entity.User;
import com.neuedu.common.util.MyBatisUtils;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

/**
 * com.neuedu.mybatis.mapper.UserMapper
 */
public interface UserMapper {


    /**
     * 根据条件查询集合
     *
     * @return
     */
    public List selectList( User user ) ;
    public List selectListByLike( User user ) ;

    /**
     * 根据主键查询一条
     *
     * @param id
     * @return
     */
    public User selectById(int id) ;

    /**
     * @param user
     * @return
     */
    public int insert(User user) ;

    /**
     * @param user
     * @return
     */
    public int updateById(User user) ;

    /**
     * @param id
     * @return
     */
    public int deleteById(int id) ;


    /**
     * @param user
     * @return
     */
    public int updateByIdUseSet(User user) ;


    /**
     *
     * @param ids
     * @return
     */
    public int deleteBath(Integer[] ids) ;

}
